#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDateTime>
#include <QDir>
#include <QFileDialog>
#include <QFileInfo>
#include <QLineEdit>
#include <QList>
#include <QMainWindow>
#include <QMessageBox>
#include <QRegExp>
#include <QStandardPaths>
#include <QWidget>
#include <QDebug>

#include "./threeLib/smallerShare.h"


QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_openFileBtn_clicked();

    void on_crcBtn_clicked();


    unsigned int CRC16(unsigned char *ptr, unsigned short len);

    void on_crcBtn_2_clicked();

    void on_checkBox_clicked();

    void on_lineEdit_editingFinished();

private:
    Ui::MainWindow *ui;
    QString filePath;
    smallerShare pFun;
    bool checkFlag;
};
#endif // MAINWINDOW_H
